// import config from '../../config/index';
import axiosInstance from '@/utils/request'
import { error } from 'console'
const config = require('@/config/index')

const api = {
  getToken: (data: any) => {
    return axiosInstance({
        url: config.API_URL_PREFIX + '/authorizations',
        method: 'post',
        data
    })
  },
  getInfo: () => {
    return axiosInstance({
        url: config.API_URL_PREFIX + '/user/profile',
        method: 'get',
    })
  },
  getDetail: () => {
    return axiosInstance({
        url: config.API_URL_PREFIX + '/user',
        method: 'get',
    })
  },
}

export default api
